<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="./echarts.min.js"></script>
</head>

<body>
    <div id="main" style="width: 500px;height:300px;"></div>
    <script>
        var myChart = echarts.init(document.getElementById('main'));
        option = {
            title:{text:'就业质量'},
            color: [ "#5e86e5", "#7db9c3","#6ba364"],
            dataset: {
                source: [
                    [ "c2109班"],
                    [ 13000,"c2109A班"],
                    [ 12000,"c2109B班"],
                    [ 12000,"c2109C班"],
                ]
            },
            legend: {
                bottom :'83%'
            },
            grid: { containLabel: true },
            xAxis:{},
            yAxis: { type: 'category' },
            series: [
            {   
                name:'c2109A班',
                type: "bar",
                seriesLayoutBy: "row",
                barGap: '0%',
            }, 
            {   
                name:'c2109B班',
                type: "bar",
                seriesLayoutBy: "row",
                barGap: '0%',
            },
            {   
                name:'c2109C班',
                type: "bar",
                seriesLayoutBy: "row",
                barGap: '0%',
            }, 
            ]
        };
        myChart.setOption(option);
    </script>
</body>

</html>